import com.google.appengine.api.datastore.Entity

if(params.id != null) {
	def ids = []
	if(params.id instanceof String){
		ids << params.id
	} else {
		ids = params.id
	}

	ids.each { id->
		Entity user = 'User'.fetchBy(id : id)
		if(user != null) {
			user.delete()
		}
	}
}
request.infoMessage = "User '$params.id' deleted..."

forward "user.groovy"